import { BaseEntity } from 'src/common/base.entity'
import { Entity, Column, ManyToOne } from 'typeorm'
import { Item } from './item.entity'

@Entity()
export class Photo extends BaseEntity {
  @Column()
  path: string

  @Column()
  order: number

  @ManyToOne(() => Item, (item) => item.photos)
  item: Item
}
